function getMemberList (params) {
  return $axios({
    url: '/employee/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableEmployee (params) {
  return $axios({
    url: '/employee',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addEmployee (params) {
  return $axios({
    url: '/employee',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editEmployee (params) {
  return $axios({
    url: '/employee',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryEmployeeById (id) {
  return $axios({
    url: `/employee/${id}`,
    method: 'get'
  })
}


function getUserList (params) {
  return $axios({
    url: 'user/page',
    method: 'get',
    params
  })
}


function queryUserById (id) {
  return $axios({
    url: `/user/queryUserById/${id}`,
    method: 'get'
  })
}


// 修改---添加员工
function editUser (data) {
  return $axios({
    url: '/user/updataUserById',
    method: 'post',
    data
  })
}

function enableOrDisableUser (params) {
  return $axios({
    url: '/user',
    method: 'put',
    data: params
  })
}



//优惠卷
function getCouponList (params) {
  return $axios({
    url: 'coupon/page',
    method: 'get',
    params
  })
}

function queryCouponById (id) {
  return $axios({
    url: `/coupon/queryCouponById/${id}`,
    method: 'get'
  })
}

// 新增---添加优惠券
function addCoupon (params) {
  return $axios({
    url: '/coupon',
    method: 'post',
    data: { ...params }
  })
}

// 修改---优惠券
function editCoupon (params) {
  return $axios({
    url: '/coupon',
    method: 'put',
    data: { ...params }
  })
}

function getStoreInformation () {
  return $axios({
    url: '/storeInformation/page',
    method: 'get'
  })
}


// 修改页面反查详情接口
function queryById (id) {
  return $axios({
    url: `/employee/${id}`,
    method: 'get'
  })
}

